package com.tcd.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tcd.pojo.Role;

import java.util.List;

/**
 * <p>
 * 角色表 服务类
 * </p>
 *
 * @author space
 * @since 2021-05-21
 */
public interface RoleService extends IService<Role> {
    List<Role> getRoleFilter(Integer pageIndex, Integer pageSize, String name, Integer permissionId);

    Integer getRoleFilterCount(String name, Integer permissionId);

    Integer addRole(Role role);

    Integer updateRole(Role role);

    Integer delRoles(Integer[] ids);

    Integer setRolePermission(Integer roleId,Integer[] permissionIds);
}
